package com.hellobike.haxing.common.constant;

/**
 * @author: huangxutao
 * @date: 2019-06-14
 * @description: 缓存常量
 */
public interface CacheConstant {
	/**
	 * 字典信息缓存
	 */
    public static final String SYS_DICT_CACHE = "sys:cache:dict";
	/**
	 * 表字典信息缓存
	 */
    public static final String SYS_DICT_TABLE_CACHE = "sys:cache:dictTable";

	/**
	 * 数据权限配置缓存
	 */
    public static final String SYS_DATA_PERMISSIONS_CACHE = "sys:cache:permission:datarules";

	/**
	 * 缓存用户信息
	 */
	public static final String SYS_USERS_CACHE = "sys:cache:user";

	/**
	 * 全部部门信息缓存
	 */
	public static final String SYS_DEPARTS_CACHE = "sys:cache:depart:alldata";

	/**
	 * 全部部门ids缓存
	 */
	public static final String SYS_DEPART_IDS_CACHE = "sys:cache:depart:allids";

	/**
	 * 测试缓存key
	 */
	public static final String TEST_DEMO_CACHE = "test:demo";

	/** Token缓存时间：3600秒即一小时 */
	public static final int  TOKEN_EXPIRE_TIME  = 3600;

	public static final long  ONE_DAY  = 60*60*24;

	/**
	 * banner列表
	 */
	public static final String OPERATE_BANNER_LIST = "operate:banner:lists";

	/**
	 * 弹框广告advert列表
	 */
	public static final String OPERATE_ADVERT_LIST = "operate:advert:lists";

	/**
	 * 弹框广告advert类型查询
	 */
	public static final String OPERATE_ADVERT_TYPE = "operate:advert:type:";

	/**
	 * icon列表
	 */
	public static final String OPERATE_ICON_LIST = "operate:icon:lists";
	/**
	 * 平铺广告列表
	 */
	public static final String OPERATE_TILING_LIST = "operate:tiling:lists";

	/**
	 * 提现门店月总金额
	 */
	String WITHDREW_AMOUNT_MONTH_SHOP = "withdrew:amount:month:shop:";

	/**
	 * cms页面管理
	 */
	public static final String OPERATE_CMS_PAGE = "operate:cms:page:";

	/**
	 * 门店订单佣金计算job
	 */
	String SHOP_ORADER_AMOUNT_JOB = "shop:order:amount:job:";
	/**
	 * 订单超时支付关闭job
	 */
	String ORADER_TIMEOUT_PAY_CLOSE_JOB = "order:timeout:pay:close:job:";
	/**
	 * 订单7天完成定时任务
	 */
	String ORADER_FINISH_JOB = "order:finish:job:";
	/**
	 * 订单取消同步采购MQ
	 */
	String ORADER_CANNEL_MQ_ORDERID = "order:cannel:mq:orderId:";
	/**
	 * 订单完成可采购MQ
	 */
	String ORADER_SUCCESS_MQ_ORDERID = "order:success:mq:orderId:";

	/**
	 * 获取提现结果定时任务
	 * 订单取消扣优惠券MQ
	 */
	String QUERY_WITHDREW_RESULT_JOB = "query:withdrew:result:job:";
	/**
	 * 清理每月提现记录
	 * 订单支付成功发优惠券MQ
	 */
	String WITHDREW_MONTH_CLEAR_JOB = "withdrew:month:clear:job:";

	/**
	 * 订单同步采购单
	 */
	String ORADER_PURCHASE_JOB = "order:purchase:job:";
	/**
	 * 分享类型查询
	 */
	 String OPERATE_SHARE_TYPE = "operate:share:type:";
	/**
	 * 订单取消扣优惠券MQ
	 */
	String ORADER_CANNEL_COUPON_MQ_ORDERID = "order:cancle:coupon:mq:orderId:";/**
	 * C端取消订单发送B端
	 */
	String CANNEL_ORDER_B_ORDERID = "cannel_order_b_orderId:";

	/**
	 * 站点所绑定的仓库
	 */
	String SHOP_BINDING_WAREHOUSE = "shopBindingWarehouse:{}";
}
